package unimelb.filesync.common.message;

import org.json.simple.JSONObject;

public class PasswordMsg implements Jsonable {
    private final String password;

    public PasswordMsg(String password) {
        super();
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    @SuppressWarnings("unchecked")
    @Override
    public String toJson() {
        final JSONObject jsonObject = new JSONObject();
        jsonObject.put("password", password);
        return jsonObject.toJSONString();
    }

}
